<?php

namespace App\Models;

use App\Library\Models\Entity;
use App\Library\Traits\Orm\ShopOrderReturnOrmTrait;

class ShopOrderReturnModel extends Entity
{
    use ShopOrderReturnOrmTrait;

    protected $table = 'shop_order_return';

    protected $primaryKey = 'or_id';

    protected $casts = ['order_goods_ids' => 'json'];

    protected $fillable = [
        'or_id',
        'serial_number',
        'buy_user_id',
        'sell_user_id',
        'order_id',
        'or_buy_status',
        'or_sell_status',
        'or_sn',
        'or_type',
        'add_user_id',
        'edit_user_id',
        'or_reason',
        'or_num',
        'or_price',
        'or_real_price',
        'or_ensure_price',
        'or_note',
        'or_api_order_sn',
        'or_api_status',
        'or_api_callback_json',
        'or_api_time',
        'or_approved_time',
        'or_sell_reject_remark',
        'or_is_delete',
        'or_add_time',
        'or_contacts',
        'or_contacts_mobile',
        'or_contacts_address',
        'img_id_json',
        'order_goods_ids',
        'created_at',
        'updated_at'
    ];
}
